package com.sw.chinesewriteboard.util

import android.app.Activity
import com.tencent.mmkv.MMKV

fun Activity.getConfigBool(key: String) = MMKV.defaultMMKV().decodeBool(key)

fun Activity.setConfigBool(key: String, value: Boolean) = MMKV.defaultMMKV().encode(key, value)

fun Activity.getConfigInt(key: String) = MMKV.defaultMMKV().decodeInt(key)

fun Activity.setConfigInt(key: String, value: Int) = MMKV.defaultMMKV().encode(key, value)